﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ManagedServices.UI.Web.Models.SubServiceInstanceModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	CreateSubServiceInstance
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Add New SubService Instance</h2>
    <%using (Html.BeginForm()){%>
    <div>
        <fieldset>
			<legend>SubService Information</legend>
            <div class="editor-label">
				<b>SubService ID</b>
			</div>
			<div class="editor-field">
				<%= Html.TextBoxFor(m => m.SubService.SubServiceID) %>
			</div>
            <div class="editor-label">
				<b>SubService Name</b>
			</div>
			<div class="editor-field">
				<%= Html.TextBoxFor(m => m.SubService.SubServiceName) %>
			</div>
            <div class="editor-label">
				<b>SubService Description</b>
			</div>
			<div class="editor-field">
				<%= Html.TextBoxFor(m => m.SubService.SubServiceDescription)%>
			</div>
        </fieldset>
        <fieldset>
			<legend>SubService Instance Specific Information</legend>
            <div class="editor-label">
				<b>UniqueURN</b>
			</div>
			<div class="editor-field">
				<%= Html.TextBoxFor(m => m.UniqueURN) %>
			</div>
            <div class="editor-label">
				<b>SubService Version</b>
			</div>
			<div class="editor-field">
				<%= Html.TextBoxFor(m => m.Version) %>
			</div>
            <div class="editor-label">
				<b>SubService Params</b>
			</div>
			<div class="editor-field">
				<%= Html.TextBoxFor(m => m.Params) %>
			</div>
        </fieldset>
        <fieldset>
			<legend>SubService Instance Configuration Information</legend>
            <div class="editor-label">
				<b>Run Mode</b>
			</div>
			<div class="editor-field">
				<%= Html.TextBoxFor(m => m.SubServiceRunConfig.RunMode) %>
			</div>
            <div class="editor-label">
				<b>SubService Run Config</b>
			</div>
			<div class="editor-field">
				<%= Html.TextBoxFor(m => m.SubServiceRunConfig.RunConfig) %>
			</div>
        </fieldset>
    </div>    
    <p>
        <input type="submit" value="Confirm" />
    </p>
    <%} %>
</asp:Content>
